package com.newbsd.web.maventest.service.impl;



import java.util.List;

import com.newbsd.web.maventest.dao.TicketDaohx;
import com.newbsd.web.maventest.dao.impl.TicketDaoImplhx;
import com.newbsd.web.maventest.pojo.Ticket;
import com.newbsd.web.maventest.service.TicketServicehx;

public class TicketServiceImplhx implements TicketServicehx{
	TicketDaohx  TicketDaoImpl = new TicketDaoImplhx();
	//添加信息
	@Override
	public Integer addTicket(Ticket ticket) {
		
		return TicketDaoImpl.addTicket(ticket);
	}
   //删除ticket
	public void delTicket(int id) {
		
		TicketDaoImpl.delTicket(id);
	}
	//分页
    public List<Ticket> allTicket(int pagesize,int rows ) {
		
		return TicketDaoImpl.allTicket(pagesize, rows);
	}
    //更新ticket
    public void updateTicket(Ticket ticket) {
		
		TicketDaoImpl.updateTicket( ticket);
	}
    //查找所有信息
	@Override
	public List<Ticket> allTicket() {
		// TODO Auto-generated method stub
		return TicketDaoImpl.allTicket();
	}
    //查找总行数
	@Override
	public Integer getTotals() {
		// TODO Auto-generated method stub
		return TicketDaoImpl.getTotals();
	}

	


	
}

